package sg.edu.nus.iss.team2s.jass.util;

import java.awt.*;

/**
 * @author LU ZHIXIAN
 */

public class InformationDialog extends OkCancelDialog {

    /**
	 * 
	 */
	private static final long serialVersionUID = -2619942556203894336L;
	private Label       messageLabel;

    public InformationDialog (Frame parent, String title, String message) {
        super (parent, title, "OK", "");
        messageLabel.setText (message);
        pack();
        
        CommonUtility.alignScreenCenter(this);
    }

    protected Panel createFormPanel () {
        Panel p = new Panel ();
        messageLabel = new Label ();
        p.add (messageLabel);
        return p;
    }
    
    protected boolean performOkAction () {return true;};
    

}
